    <div class="container margin-top-content">
      <div class="row">
        <div class="col-sm-10 col-sm-offset-1">
          <div class="col-sm-12">
            <div class="row padding15 outer-border shadow singlepage">
              <h4 class="font-biru judul-singlepage">Portofolio</h4><br>
      			  <?php
      				if(isset($hasil)){
      					foreach($hasil as $val){
      					if($val['gambar']==""){
      					$gambar="default.jpg";
      				}else{
      					$gambar=$val['gambar'];
      				}
      				$path_gambar=base_url()."foto_portofolio/thumbs/".$gambar;
      				?>
              <div class="col-sm-4">
                <div class="outer-nobg tinggi-fix-portofoliopage">
                  <p class="img-allPortofolio">
                    <img src="<?php echo $path_gambar?>" alt="<?php echo $val['judul'];?>">
                  </p>
                  <p class="nama-portofolio font-orange"><a href="<?php echo site_url('portofolio/'.$val['slug'])?>" ><?php echo $val['judul'];?></a></p>
                  <p class="page-col small">
                    <?php $tmp_konten=strip_tags($val['konten']);
          					$konten = substr($tmp_konten,0,110);
          					echo $konten." . . .";?>
                  </p>
                  <p>
                    <a href="<?php echo site_url('portofolio/'.$val['slug'])?>" class="btn btn-primary btn-sm">View Project</a>
                  </p>
                <div class="clearfix"></div>
                </div>
              </div>
    			    <?php
    				  }
  				  }
				  ?>
            <div class="clearfix"></div>
            </div><!-- /row -->
          </div>
        <div class="clearfix"></div>
        </div>
      </div>
    </div><!-- /.container -->